class Animal {
    action() {
        console.log('animal running');
    }
}

class Dog extends Animal {
    action() {
        console.log('dog studying');
    }
}

class Fish extends Animal {
    action() {
        console.log('fish swimming');
    }
}

function makeAction(animals: Animal[]) {
    animals.forEach
}

export { }